import { createApp } from 'vue'
import 'normalize.css'
import '@/assets/style/css/reset.css'
import '@wangeditor/editor/dist/css/style.css' // 引入 css

import App from './App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//国际化
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import router from '@/router'

import { registerIcon } from '@/global'
import pinia from '@/store'
import registerStore from '@/store'

const app = createApp(App)
//注册图标
registerIcon(app)

//注册pinia和路由信息
registerStore(app)
//国际化
app.use(ElementPlus, {
  locale: zhCn
})
app.use(pinia)
app.use(router)
app.mount('#app')
